﻿@theme: "../refs/";

@import "@{theme}variables.less";
@import "@{theme}mixins.less";

@galleryWidth: @container-lg*0.4;
@overviewWidth: @container-lg*0.6;
@border-color: #ccc;
@pane-bg-color: #f5f5f5;

.product-details-page {
    .product-essential {
        position: relative;
        min-height: 530px;
        //share buttons.
        .share-container {
            position: absolute;
            left: 0;
            bottom: 25px;
            width: 430px;
        }

        .share-prize {
            padding-bottom: 10px;
        }

        .product-share-button {
            position: relative;
            height: 40px;
            padding-left: 50px;

            .share-title {
                position: absolute;
                top: 4px;
                left: 0;
                font-size: 15px;
            }

            a {
                padding: 0 5px;
            }
        }
    }

    .layout2 {
        border: 1px solid #ccc;
        border-collapse: collapse;

        td {
            padding:2px;
            border: 1px solid #ccc;
        }
    }

    * {
        .box-sizing(content-box);
    }
    //picture slideshow float left.
    .gallery {
        float: left;
        width: @galleryWidth;
        //.bx-slider plugin widget
        .picture-thumbs-wrapper {
            float: left;
            width: 73px;
            height: 360px;
            padding: 20px 5px;
            position: relative;
            overflow: hidden;
            .box-shadow(0 0 5px #ccc);

            .bx-wrapper {
                width: 73px;
                margin: 0 !important;
            }

            .icon-bg {
                background: url('') /*../images/icon-sprites.png*/ no-repeat;
            }

            .slider-up, .slider-down {
                text-align: center;
                position: absolute;
                bottom: 0;
                display: block;
                width: 100%;
                height: 20px;
                background-position: 50% 7px;

                a {
                    color: #fff;
                    width: 100%;
                    display: block;
                    height: 20px;
                }
            }

            .slider-up {
                top: 0;
                left: 0;
            }

            .slider-down {
                bottom: 0;
                left: 0;
                background-position: 50% -25px;
            }
        }

        .picture-thumbs {
            margin: 0;
            padding: 0;

            .thumb-link {
                display: block;
                height: 86px;
                width: 73px;
                margin-bottom: 5px;
                background: url(../images/thumb-default.png) no-repeat;

                .line {
                    height: 2px;
                    display: block;
                }

                &.selected {
                    .line {
                        background: @brand-primary;
                        margin-top: -2px;
                    }
                }
            }

            img {
                //nature size 67*80 the same with  mini shopping cart. maxsize config is  80
                width: 67px;
                height: 80px;
                margin: 2px;
                border: 1px solid #f0f0f0;
            }
        }
        // picture holder.
        .picture {
            float: left;
            padding: 19px;
            border: 1px solid @border-color;

            a {
                display: block;
                height: 360px;
                width: 302px;
                background: url('') no-repeat center center;
            }

            img {
                //the max size is height set it as  360px;
                height: 360px;
                width: 302px;
                border: 0;
            }
        }
    }
    // overviews
    .overview {
        float: left;
        width: @overviewWidth;

        .product-name {
            border-bottom: 1px solid @border-color;

            h1 {
                font-size: @font-size-large;
                margin-top: 0;
            }
        }

        .short-description {
            margin-top: 5px;
        }

        .label {
            color: @gray;
        }

        .man-stock-pane {
            background: #fff;
            padding: 10px 0;
        }
        //*price pane
        .price-pane {
            position: relative;

            .prices {
                padding: 5px 0;
                .clearfix();
                overflow: hidden;

                .old-product-price, .non-discounted-price {
                    float: left;
                    padding-right: 10px;
                    text-decoration: line-through;
                    font-size: @font-size-large;
                }

                .product-price {
                    float: left;

                    label {
                        font-size: @font-size-large;
                    }

                    font-size: @font-size-large;
                    color: @brand-primary;
                }
            }

            .free-shipping {
                position: absolute;
                right: 0;
                top: 0;
                padding: 5px;
                background: @brand-primary;
                border: 1px dashed #f0f0f0;
                color: #fff;
            }
        }
        //overview right details.
        .overview-essential {
            margin-bottom: 23px;
            padding: 6px;
            background: @pane-bg-color;
        }
    }

    .product-collateral {
        padding-top: 20px;

        strong {
            color: @gray-darker;
            font-weight: normal;
            display: block;
            padding: 5px 0;
        }

        .box-content {
            padding: 10px;
            border-left: 1px solid @border-color;
            position: relative;
            padding-left: 40px;
            margin-left: 15px;

            &.active {
                .floor-number {
                    background: #383838;
                    color: #fff;
                }
            }
            // child table content styles.
            .content-table {
                border: 1px solid @border-color;
                padding: 5px;
                font-size: @font-size-base;
                border-collapse: collapse;

                .title {
                    padding: 2px 5px;
                    font-weight: bold;
                    font-size: @font-size-base;
                    background: #f9f9f9;
                }

                td {
                    border: 1px solid @border-color;
                    padding: 5px;
                    border-collapse: collapse;
                }
            }
            //*overview tab box
            &.overview-tab-box {
                padding-top: 0;
                margin-top: 30px;
                border-bottom: 1px dashed @border-color;

                .floor-number {
                    top: 0;
                }
            }

            &.shipping-payment-tab-box {
                border-bottom: 1px dashed @border-color;
            }

            &.guarantees-tab-box {
                border-bottom: 1px dashed @border-color;
            }

            &.full-size-pictures-tab-box {
                border-bottom: 1px dashed @border-color;

                li {
                    margin: 5px 0;
                }
            }

            &.also-purchased-products-grid {
                border-bottom: 1px dashed @border-color;
            }

            &.related-products-grid {
                border-bottom: 1px dashed @border-color;
            }

            &.product-reviews-overview-tab-box {
                border-bottom: 1px solid @border-color;
            }

            .floor-number {
                position: absolute;
                top: 10px;
                left: -15px;
                text-align: center;
                line-height: 30px;
                color: @brand-primary;
                width: 30px;
                height: 30px;
                display: block;
                background: @pane-bg-color;
                border: 1px solid darken(@pane-bg-color,10%);
                .border-top-radius(20px);
                .border-bottom-radius(20px);
            }
        }

        .title {
            font-size: @font-size-h4;
            color: @gray;
            padding: 5px 0;
        }
    }
    //_ProductSpecifications
    .product-specs-box {
        background: @pane-bg-color;
        padding: 10px;

        table {
            border-collapse: separate;
            border-spacing: 5px;

            td {
                padding: 0 5px;
            }

            .sa-name {
                width: 100px;
                text-align: left;
                padding-right: 10px;
                height: 25px;
                line-height: 25px;
                color: #666;
                white-space: nowrap;

                span {
                    border: 1px dashed @gray;
                    display: block;
                    padding: 0 5px;
                }
            }

            .sa-value {
                width: 25%;
                height: 25px;
                line-height: 25px;
                color: #333;
                text-align: left;

                .color {
                    border: 1px solid #ccc;
                    display: inline-block;
                    float: left;
                    width: 20px;
                    height: 20px;
                }
            }
        }
    }

    .full-description {
        padding: 10px;

        .title {
            color: @gray-darker;
            font-weight: normal;
            font-size: @font-size-base;
            display: block;
            padding: 5px 0;
        }

        .package-detail {
            padding: 0 1px 15px;

            .ui-attr-list {
                padding-top: 5px;
                line-height: 145%;
                margin-bottom: 5px;
            }

            .ui-attr-list dt {
                float: left;
                width: 140px;
                text-align: left;
                color: @gray-darker;
                font-weight: normal;
            }

            .ui-attr-list dd {
                color: #333;
                margin: 0 0 0 214px;
            }
        }

        .util-clearfix {
            zoom: 1;
            clear: both;
        }


        .datagrid {
            overflow: hidden;
            border: 1px solid #8C8C8C;

            table {
                border-collapse: collapse;
                text-align: left;
                width: 100%;

                td, th {
                    padding: 6px 10px;
                }

                th {
                    background: -webkit-gradient( linear, left top, left bottom, color-stop(0.05, #8C8C8C), color-stop(1, #7D7D7D));
                    background-color: #8C8C8C;
                    color: #ffffff;
                    font-size: 12px;
                    font-weight: bold;
                    border-left: 1px solid #A3A3A3;

                    &:first-child {
                        border: none;
                    }
                }

                td {
                    color: #7D7D7D;
                    border-left: 1px solid #DBDBDB;
                    font-size: 12px;
                    font-weight: normal;

                    &:first-child {
                        border-left: none;
                    }
                }

                tr:nth-child(even) td, .alt td {
                    background: #EBEBEB;
                    color: #7D7D7D;
                }

                tr:last-child td {
                    border-bottom: none;
                }
            }
        }
    }
    //_ProductTags
    .product-tags-box {
        padding: 10px;

        li {
            float: left;
            margin-right: 10px;
        }
    }
}
